package com.ftf.tp.user.infrastructure.adapter.http;


import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * passport远程调用类
 *
 * @author tanghao
 */
@FeignClient(name = "passport-auth",url = "http://119.23.68.253:9999/auth")
public interface PassportFeign {

    /**
     * 根据UserId获取tp网站用户信息
     *
     * @param userId 用户Id
     */
    @GetMapping("/passport/tp/getTpUserInfoByUserId")
    JSONObject getTpUserInfoByUserId(@RequestParam("userId") Long userId);
}
